package com.service;

import java.sql.Date;
import java.util.List;

import javax.servlet.http.HttpSession;

import com.model.Agent;

public interface AgentService {

	public void add(String branch,Agent agent);

	public List<Agent> getAll(int page);
	
	public Agent get(Integer id);
	
	public void delete(Integer id);
	
	public List<Agent> getByDate(Date from,Date to); 
		
	public int getNoOfRecords();
	
	public List getAgentName();
	public List<Agent> getAllForUser(String name);
	public List<Agent> getAllForAdmin();
	
}
